<#assign contextPath=springMacroRequestContext.getContextPath() />
<#import "/public/frame/main.html" as frame />
<@frame.head "南航明珠商城-商品规格管理"> </@frame.head>
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="${contextPath}/resources/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="${contextPath}/resources/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="${contextPath}/resources/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="${contextPath}/resources/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="${contextPath}/resources/static/h-ui.admin/css/style.css" />
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 后台管理中心 <span class="c-gray en">&gt;</span>
	系统管理 <span class="c-gray en">&gt;</span> 查看账号 <a
		class="btn btn-success radius r"
		style="line-height: 1.6em; margin-top: 3px"
		href="javascript:location.replace(location.href);" title="刷新"><i
		class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">


	<div class="cl pd-5 bg-1 bk-gray mt-20">
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						用户头像：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<img alt="" src="${filePahts}${stu.avatar}" style="width:90px;height:80px"/>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						用 户 名：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" id="website-title" disabled  value="${stu.nickname}" class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						手 机 号：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" id="website-Keywords" value="${stu.phonenumber}" disabled class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						艺术专业：</label>
							<#if stu.theirprofession==1>
							<div class="formControls col-xs-8 col-sm-9">
						<input type="text" id="website-description" disabled  value="美术" class="input-text">
					</div>
							</#if>
							<#if stu.theirprofession==2>
								<div class="formControls col-xs-8 col-sm-9">
						<input type="text" id="website-description" disabled value="舞蹈" class="input-text">
					</div>
							</#if>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						用户身份：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" id="website-static" disabled value="学生" class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						用户生日：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" id="website-uploadfile" disabled value="${stu.birthday}" class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						用户性别：</label>
						
						<#if stu.gender==1>
							&nbsp;&nbsp;&nbsp;&nbsp;<label for="sex-1">男</label>
						</#if>
					<#if stu.gender==2>
						&nbsp;&nbsp;&nbsp;&nbsp;<label for="sex-1">女</label>
						</#if>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">所属机构：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" id="website-icp" disabled value="${stu.affiliatedtraininginstitution}" class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">用户备注：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea class="textarea" disabled>${stu.remark}</textarea>
					</div>
				</div>
		
				<td><button  class="btn btn-default radius" onclick="javascript:history.back(-1);" type="button">返回</button ></td>
		<div id="div_page" style="padding-top: 10px; float: right"></div>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<@frame.end "default"> </@frame.end>
	</html>
	<script type="text/javascript"
		src="${contextPath}/resources/lib/My97DatePicker/4.8/WdatePicker.js"></script>
	<script type="text/javascript"
		src="${contextPath}/resources/js/laypage/laypage.js"></script>
	<script type="text/javascript">
var path="${contextPath}";
function delrole(id){
	layer.confirm("确定删除此角色吗?",function(){
		layer.closeAll('dialog');
		var layer_load_window = layer.load(2); 
		  $.ajax({
				url : path+"/stu/student_delete",
				cache : false,
				type : 'post',
				dataType : 'html',
				data : {
					"id":id},
				error : function() {
					layer.alert("操作失败!");
				},
				success : function(message) {
	        		if(message == "200"){
	                    layer.msg('操作成功!',{icon:1,time:1000},function(){
	                        window.location.reload();
	                    });
	 				}else if(message == "500"){
	 					layer.alert("系统繁忙！");
	 				}else{
	 					layer.alert(message);
	 				}
				},complete: function(XMLHttpRequest, textStatus) {
					layer.close(layer_load_window);
				}
		  });
	});
}

/*编辑*/
function addStudent(){
	  var url=path+"/stu/stutoadd"
	  if(url!=""){
	      var index = layer.open({
	            type: 2,
	            title: '添加账号',
	            scrollbar: false,
	            content: url,
	            area: ['500px', '200px']
	        });
	    }
}


laypage({
	cont: 'div_page',//容器。值支持id名、原生dom对象，jquery对象。
    pages: ${pagination.totalPage},//通过后台拿到的总页数
    curr:  ${pagination.pageNo} || 1, //当前页
    skip: true, //是否开启跳页
	first: 1, //将首页显示为数字1,。若不显示，设置false即可
    last: ${pagination.totalPage},
    jump: function(obj , first){//触发分页后的回调
        if(!first){ //点击跳页触发函数;当前页为obj.curr
        	window.location.href = path + "/role/query_role_list?page=" + obj.curr
        }
    }
})  
function fanhui(){
	window.location.reload();
}

</script>